package com.illtamer.infinite.sillage.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.illtamer.infinite.sillage.pojo.Comment;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface CommentMapper extends BaseMapper<Comment> {

    List<Comment> listTopCommentByBlogId(@Param("blogId") Integer blogId);

    Boolean deleteByBlogId(@Param("blogId") Integer blogId);
}
